<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:composition>
	<p:panel header="Dados Pessoais" toggleable="true" style="width:800px;">
					<h:panelGrid columns="2">
						<h:outputLabel value="Matricula*:" />
						<h:outputText value="#{professor.usuario.matricula}" required="true" requiredMessage="Insira a matrícula"/>
						<h:outputLabel value="Nome*:" />
						<h:outputText value="#{professor.usuario.nome}"
							size="50" required="true" requiredMessage="Insira o nome"/>
						
						<h:outputLabel value="Nome do Pai*:" />
						<h:outputText value="#{professor.nomePai}" required="true" requiredMessage="Insira o nome do pai" size="50"/>
						
						<h:outputLabel value="Nome da Mãe*:" />
						<h:outputText value="#{professor.nomeMae}" required="true" requiredMessage="Insira o nome da mãe" size="50"/>
						
						<h:outputLabel value="Sexo*:" />
						<h:outputText value="#{professor.sexo}" />
							
						
						<h:outputLabel value="Estado Cicil*:" />
						<h:outputText value="#{professor.estadoCivil}" />
							
						
						<h:outputLabel value="Raça*:" />
						<h:outputText value="#{professor.raca}" />
							
						
						<h:outputLabel value="Tipo Sanguineo:" />
						<h:outputText value="#{professor.tipoSanquineo}" size="4"/>

						
						
					</h:panelGrid>
				</p:panel>
				
				<p:panel header="Documentos" toggleable="true">
					<h:panelGrid columns="2">
					<h:outputLabel value="RG*:" />
					<h:outputText value="#{professor.rg}"/>
					
					<h:outputLabel value="Orgão Expeditor*:" />
					<h:outputText value="#{professor.orgaoExpeditorRg}" required="true" requiredMessage="Insira o orgão expeditor do RG" size="4"/>
				
					<h:outputText value="UF*:" />
					<h:outputText value="#{professor.ufRg}"/>
						
					
					<h:outputLabel value="Título de Eleitor*:" />
					<h:outputText value="#{professor.titulo}" />
					
					<h:outputLabel value="Zona*:" />
					<h:outputText value="#{professor.zonaTitulo}" size="12" required="true" requiredMessage="Insira a zona do titulo"/>
					
					<h:outputLabel value="Seção*:" />
					<h:outputText value="#{professor.secao}" size="12" required="true" requiredMessage="Insira a seção do titulo"/>
					
					<h:outputText value="UF do Título*:" />
					<h:outputText value="#{professor.ufTitulo}"/>
						
					</h:panelGrid>	
				</p:panel>
				<p:panel header="Dados Bancarios" toggleable="true">
				<h:panelGrid columns="2">
					<h:outputLabel value="Banco*:" />
					<h:outputText value="#{professor.banco}" required="true" requiredMessage="Inisira o banco" size="20"/>
					
					<h:outputLabel value="Comta*:" />
					<h:outputText value="#{professor.conta}" required="true" requiredMessage="Inisira a conta" size="10"/>
					
					<h:outputLabel value="Agencia*:" />
					<h:outputText value="#{professor.banco}" required="true" requiredMessage="Inisira a Agencia" size="10"/>
				
				</h:panelGrid>
				
				</p:panel>
				<p:panel header="Contatos" toggleable="true">
					<h:panelGrid columns="2">
						<h:outputLabel value="Telefone 1*:" />
						<h:outputText
							value="#{professor.telefone1}" />
						<h:outputLabel value="Telefone 2:" />
						<h:outputText
							value="#{professor.telefone2}" />
						
						<h:outputLabel value="Email*:" />
						<h:outputText value="#{professor.email}" />
							
					</h:panelGrid>
				</p:panel>
				<p:panel header="Endereço" toggleable="true">
					<h:panelGrid columns="2">
						<h:outputLabel value="Cep:" />
						<h:outputText value="#{professor.cep}"/>
						<h:outputLabel value="Rua:" />
						<h:outputText value="#{professor.endereco}" size="60" />
						<h:outputLabel value="Número:" />
						<h:outputText value="#{professor.numero}" size="4" />
						<h:outputLabel value="Bairro:" />
						<h:outputText value="#{professor.bairro}" />
						
						
						
						
						<h:outputLabel value="Estado" />
						<h:outputText value="#{professor.estado}"/>
							
						
						<h:outputLabel value="Cidade:" />
						<h:outputText value="#{professor.cidade}"/>
							
						
					</h:panelGrid>
				</p:panel>
				
				<p:panel id="escolhaEscola" header="Escola" toggleable="true">

					<p:dataTable id="tabelaEscola" var="escola"
						value="#{professor.escolas}"
						emptyMessage="Nenhuma escola foi vinculada a este professor ainda!">

						<p:column headerText="Nome da escola">
								#{escola.nome}
							</p:column>

						<p:column headerText="Inscrição da escola">
								#{escola.sigla}
							</p:column>


					</p:dataTable>

				</p:panel>
	
	
	
	</ui:composition>
</html>